package com.xuxin.baby.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.baby.R;
import com.xuxin.baby.bean.ReportBean;
import com.xuxin.baby.utils.BaseUtils;

import org.jetbrains.annotations.NotNull;

/**
 * Created by xu_xin
 * Created on 2020.08.07 0007
 * 我的报告
 */
public class UserReportAdapter extends BaseQuickAdapter<ReportBean.ResultBean.ItemsBean, BaseViewHolder> {

    public UserReportAdapter() {
        super(R.layout.item_user_report);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, ReportBean.ResultBean.ItemsBean item) {
        holder.setText(R.id.item_user_report_name, item.getTitle());
        holder.setText(R.id.item_user_report_time, BaseUtils.getTime(item.getCreationTime()));
    }
}